package com.itheima.work1120s;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

public class Classroom {
    private Map<Integer, Student> students;

    public Classroom() {
        this.students = new HashMap<>();
    }

    public void addStudent(Student student) {
        students.put(student.getId(), student);
    }

    public Collection<Student> getStudents() {
        return students.values();
    }
}


